package com.medical.doctor.feign;

import com.medical.doctor.entity.PatientMedicalRecordEntity;
import com.medical.doctor.entity.PatientPatientEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient("medical-patient")
public interface PatientMedicalRecordFeignClient {

    @RequestMapping("/patient/patientmedicalrecord/findByDoctorId/{doctorId}")
    public List<PatientMedicalRecordEntity> findByDoctorId(@PathVariable("doctorId") Integer doctorId);

    @RequestMapping("/patient/patientpatient/patientlist")
    public List<PatientPatientEntity> patientlist();



}
